aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/thread/[id]/+page.svelte
blob: 40eaec839690e2ed0c69e126e5282d38005925fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
  import Event from "$comp/Event.svelte";

  let { data } = $props();
  let { thread } = $derived(data);
  console.log(thread);
</script>

<div class="container px-4 max-w-xl mx-auto space-y-5">
  <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold">
    Thread
  </h1>

  {#each thread as event}
    <Event {event} minimal={true} />
  {/each}
</div>